<script>
import BaseDataBox from '../common/BaseDataBox';
import { ajaxPost } from 'global/axios';
import storage from 'good-storage';

export default {
  extends: BaseDataBox,

  data() {
    return {
      title: '本月考核分数',
      icon: 'circle',
      value: '',
      urlScore: '/stat/chiefs/score'
    };
  },
  methods: {
    // 本月考核分数
    getScore() {
      let params = {
        data: {},
        url: this.urlScore,
        token: storage.session.get('token'),
        success: res => {
          if (res.data.code == '0000') {
            this.value = res.data.result;
          }
        },
      };
      ajaxPost(params);
    }
  },
  mounted() {
    // this.getScore(); // 暂不显示考核分数
  }
};
</script>